export function allProjects(): Promise<Data[]> {
  return http.post<Data[]>('/api/sys/Project/all', undefined, { appKey: 'sys' })
}

export function deleteProject(id: number): Promise<boolean> {
  return http.post<boolean>('/api/sys/Project/delete/' + id, null, { appKey: 'sys' })
}
